<template>
  <a-config-provider :locale="appStore.locale" :componentSize="componentSize">
    <router-view />
  </a-config-provider>
</template>

<script setup lang="ts">
import { useAppStore } from '@/store/modules/app';

type SizeType = 'small' | 'middle' | 'large' | undefined;

const appStore = useAppStore();

const componentSize = ref<SizeType>(appStore.size);
</script>
